package com.bulletelc.apollopre.module.display.product.resultList.fragment;

import com.bulletelc.apollopre.entity.SearchResultGoodsBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * Created by CX on 2018/4/12.
 */

public interface ResultListContact {

    interface View extends IView {
        void onSuccessByName(List<SearchResultGoodsBean> productList, int totalPage);
        void onFailByName(String fail);
        void onErrorByName(String error);

        void onSuccessByClassifyId(List<SearchResultGoodsBean> productList, int totalPage);
        void onFailByClassifyId(String fail);
        void onErrorByClassifyId(String error);
    }

    interface Presenter extends IPresenter<View> {
        // 通过名字搜索
        void searchByName(int page, String... args);

        // 通过分类ID搜索
        void searchByClassifyId(int page, String... args);

    }

}
